package com.czk.date;

import java.text.DateFormat;
import java.util.Date;

/**
 * @Author:ChenZhangKun
 * @Date: 2023/4/3 22:38
 */
public class DateZoneFormat {
    public static void main(String[] args) {
        String format = DateFormat.getDateInstance().format(new Date());
        System.out.println(format);

        System.out.println(DateFormat.getDateTimeInstance().format(new Date()));


    }
}
